package ThreadTest;

public class Demo5 {
    public static void main(String[] args) {
        Thread t = new Thread(new Runnable() {//针对Runnable创建的匿名内部类，同时new的Runnable实例传给Thread的构造方法
            @Override
            public void run() {
                System.out.println("hello Tanchen");
            }
        });
        t.start();
    }
}
